package com.navinfo.platform.wbs.dto.condition;

import com.navinfo.platform.dataanalysis.dto.LocationDataPoint;

public class RunningCondition extends AbstractCondition {

    @Override
    protected boolean subCondition(LocationDataPoint point, Object... externalParam) {
        int acc = point.getAcc();
        int rotation = point.getRotation();
        return !lastPoint && ( acc > Integer.parseInt(param[0]) && rotation > Integer.parseInt(param[1]));
    }
}
